﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using TestCAI.Models;
using TestCAI.DTO;

namespace TestCAI.Controllers
{
    public class CAIEntryController : _BaseController
    {
        //
        // GET: /CAIEntry/NewCAI
        // Display a blank page so that the user can create a new CAI.
        public ActionResult NewCAI()
        {
            CaiViewModel model = new CaiViewModel();
            model.cai = new CaiDTO();

            model.ShoppingCenters = ShoppingCenters;            
            
            
            return View(model);
        }

        [HttpPost]
        public ActionResult NewCAI(FormCollection collection)
        {

            //collection["cai.User"]
            return RedirectToAction("Index", "Home");
        }

    }

}
